package com.woniuxy.seckill.mapper;

import com.hc.entity.Discount;
import org.apache.ibatis.annotations.Insert;

public interface DiscountMapper {


    /**
     * 添加抢到的优惠券
     * @param discount
     */
    @Insert("insert into hc_discount values(null,#{userId},1,#{discountId},#{shopId})")
    void addDiscount(Discount discount);
}
